﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace sy3_5
{
    class CountDistance
    {
        private double distance;
        private static double totalDistance = 50.2;

        public double Distance
        {
            get { return distance; }
            set { distance = value; }
        }

        public static double TotalDistance
        {
            get { return totalDistance; }
            set { totalDistance = value; }
        }

        public void AddToTotal()
        {
            CountDistance.totalDistance += this.distance;
        }
    }
}
